const base = {
  version: "1.0.0",
  theme: {
    styleId: "default",
    color: "#3e91f7"
  }
};
const dev = {
  ...base,
  environment: {
    name: "dev",
    domain: "https://dev.sgcctd.cn",
    api: "apiDev",
    apiImg: "apiImg",
  },
};
// 编译之后，在服务器里运行
const product = {
  ...base,
  environment: {
    name: "product",
    domain: window.location.origin,
    api: "/api",
    apiImg: "/",
  },
};
const config = process.env.NODE_ENV === "development" ? dev : product;

module.exports = config;
